package org.jeecg.modules.analysisachievement.achclasses.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.analysisachievement.achclasses.mapper.AchClassAchievementExamScoreMapper;
import org.jeecg.modules.analysisachievement.achclasses.service.IAchClassAchievementExamScoreService;
import org.jeecg.modules.analysisachievement.achclasses.vo.AchClassAchievementExamScoreVo;
import org.jeecg.modules.analysisachievement.achclasses.vo.AchClassSubjectScoreVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;
import java.util.Map;

/**
 * @Description: ach_achievement_exam
 * @author: baochangrong
 * @Date:   2022-05-28
 * @Version: V1.0
 */
@Service
public class AchClassAchievementExamScoreServiceImpl extends ServiceImpl<AchClassAchievementExamScoreMapper, AchClassAchievementExamScoreVo> implements IAchClassAchievementExamScoreService {
    @Autowired
    AchClassAchievementExamScoreMapper achClassAchievementExamScoreMapper;
    @Override
    public IPage<AchClassAchievementExamScoreVo> queryAchClassAchievementExamScoreVoLists(AchClassAchievementExamScoreVo achClassAchievementExamScoreVo, Map<String, String> queryParam, Page<AchClassAchievementExamScoreVo> page) {
//        page.setSize(10*page.getSize());
        List<AchClassAchievementExamScoreVo> achClassAchievementExamScoreVoList = achClassAchievementExamScoreMapper.queryAchClassAchievementExamScoreVoLists(achClassAchievementExamScoreVo,queryParam);
        return page.setRecords(achClassAchievementExamScoreVoList);
    }
    @Override
    public List<AchClassAchievementExamScoreVo> queryAchClassAchievementExamScoreVoLists(AchClassAchievementExamScoreVo achClassAchievementExamScoreVo, Map<String, String> queryParam) {
        return achClassAchievementExamScoreMapper.queryAchClassAchievementExamScoreVoLists(achClassAchievementExamScoreVo,queryParam);
    }
}
